//
//  SectionHeader.m
//  National flag
//
//  Created by Justsoso on 16/3/9.
//  Copyright © 2016年 Justsoso. All rights reserved.
//

#import "SectionHeader.h"

@implementation SectionHeader

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        self.label.font = [UIFont systemFontOfSize:20];
        self.label.textColor = [UIColor whiteColor];
        self.label.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.label];
    }
    return self;
}

@end
